<?php /* Smarty version Smarty-3.1.13, created on 2013-06-09 10:50:25
         compiled from ".\templates\selectedTable.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1594751825607ccc175-99927874%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bad0491f72249d402fd26e6b13fa997f7d125521' => 
    array (
      0 => '.\\templates\\selectedTable.tpl',
      1 => 1370755219,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1594751825607ccc175-99927874',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51825607d92896_66580488',
  'variables' => 
  array (
    'tableId' => 0,
    'tablePart' => 0,
    'waiterName' => 0,
    'recordFound' => 0,
    'orderArray' => 0,
    'waiterId' => 0,
    'joinQueryResult' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51825607d92896_66580488')) {function content_51825607d92896_66580488($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\shiv\\include\\smarty\\libs\\plugins\\modifier.date_format.php';
?><html>
<head>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript">
function totalAmount()
{
  var amount = $('#quenty').val();
  perCal = parseFloat(iceCreamPrice)* parseFloat(quenty);
  $('#amount').val(perCal);
}
 
</script>
</head>
<body>	
  <table align="left" border="2"  id="tableNo" clsss="waiterdiv" cellpadding="4" cellspacing="0" >
  <tr>
    <th colspan="7"><font size=5 color="red"> Table : <?php echo $_smarty_tpl->tpl_vars['tableId']->value;?>
&nbsp&nbsp<?php echo $_smarty_tpl->tpl_vars['tablePart']->value;?>
 &nbsp &nbsp &nbsp Waiter : <?php echo $_smarty_tpl->tpl_vars['waiterName']->value;?>
</font></th>
  </tr>
<?php if ($_smarty_tpl->tpl_vars['recordFound']->value==1){?>
  <tr>
      <th>&nbsp;</th>
      <th>Item</th>
      <th>Rate</th>
      <th>Quantity</th>
      <th>Weight</th>
      <th>Amount</th>
      <th>Time</th>
  </tr>
      <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['iSec'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['name'] = 'iSec';
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['orderArray']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['iSec']['total']);
?>
      <tr>
      	<td class="table2" align="center">
      		<a href="deleteOrder.php?ordereditemsId=<?php echo $_smarty_tpl->tpl_vars['orderArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['iSec']['index']]['ordereditemsId'];?>
&waiterId=<?php echo $_smarty_tpl->tpl_vars['waiterId']->value;?>
&tableId=<?php echo $_smarty_tpl->tpl_vars['tableId']->value;?>
&tablePart=<?php echo $_smarty_tpl->tpl_vars['tablePart']->value;?>
" 
      		 onclick="return confirm('are u sure to delete this ??')"><img src="./images/deleteIcon.png" height="20px" width="20px">
      		 </a>
        </td>
        <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['orderArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['iSec']['index']]['itemName'];?>
</td>
        <td class="table2" align="right"><?php echo $_smarty_tpl->tpl_vars['orderArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['iSec']['index']]['itemPrice'];?>
</td>
        <td align="right">
          <?php echo $_smarty_tpl->tpl_vars['orderArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['iSec']['index']]['quantity'];?>

        </td>
        <td align="center"><?php if ($_smarty_tpl->tpl_vars['orderArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['iSec']['index']]['weight']<1000){?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['orderArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['iSec']['index']]['weight'];?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==0){?>---<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['orderArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['iSec']['index']]['weight'];?>
Gm<?php }?><?php }else{ ?>1Kg<?php }?></td>
        <td align="right"><?php echo $_smarty_tpl->tpl_vars['orderArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['iSec']['index']]['amount'];?>
</td>
        <td class="table2" align="left"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['orderArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['iSec']['index']]['orderTime'],"%H:%M");?>
</td>
      </tr>
      <?php endfor; endif; ?>
      <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['name'] = 'lasttr';
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['joinQueryResult']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['lasttr']['total']);
?>
        <tr>
          <td>Total</td>
          <td colspan="2">&nbsp;</td>
          <td align="right"><?php echo $_smarty_tpl->tpl_vars['joinQueryResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['lasttr']['index']]['totalItem'];?>
</td>
          <td align="right">&nbsp;</td>
          <td align="right"><?php echo $_smarty_tpl->tpl_vars['joinQueryResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['lasttr']['index']]['totalamount'];?>
</td>
          <td>&nbsp;</td>
        </tr>
      <?php endfor; endif; ?>
<?php }else{ ?>
  <tr>
  	<th colspan="7">Record Not Found For Current Table</th>
  </tr>
<?php }?>
</table>
</body>
</html><?php }} ?>